package org.fly.service;

import org.fly.bean.Customer;
import org.fly.bean.query.CustomerQuery;
import org.fly.bean.common.BusinessException;
import java.util.List;

/**
* Created by autoCode on 2018-02-19 20:23:59.
*/
public interface CustomerService {

    List<Customer> list(CustomerQuery query);

    long count(CustomerQuery query);

    Customer findById(String id);

    void save(Customer bean)  throws BusinessException;

    void delete(String id);

    Customer login(String telephone,String password) throws BusinessException;

    void register(Customer data,String verifyCode) throws BusinessException;

}
